/* Calendar Component Styles */
.task-genius-view .mini-calendar-container {
	display: flex;
	flex-direction: column;
	width: 100%;
	border-bottom: 1px solid var(--background-modifier-border);
	padding-bottom: 10px;
}

.task-genius-view .mini-calendar-container .calendar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 15px;
	margin-bottom: 10px;
}

.task-genius-view .mini-calendar-container .calendar-title {
	font-weight: 600;
	display: flex;
	gap: 5px;
}

.task-genius-view .mini-calendar-container .calendar-month {
	margin-right: 5px;
}

.task-genius-view .mini-calendar-container .calendar-year {
	color: var(--text-muted);
}

.task-genius-view .mini-calendar-container .calendar-nav {
	display: flex;
	align-items: center;
	gap: 8px;
}

.task-genius-view .mini-calendar-container .calendar-nav-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 4px;
	background-color: var(--background-modifier-hover);
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.2s ease;
}

.task-genius-view .mini-calendar-container .calendar-nav-btn:hover {
	opacity: 1;
	background-color: var(--background-modifier-border-hover);
}

.task-genius-view .mini-calendar-container .calendar-today-btn {
	padding: 2px 8px;
	border-radius: 4px;
	background-color: var(--background-modifier-hover);
	cursor: pointer;
	font-size: 0.8em;
	transition: background-color 0.2s ease;
}

.task-genius-view .mini-calendar-container .calendar-today-btn:hover {
	background-color: var(--background-modifier-border-hover);
}

.task-genius-view .mini-calendar-container .calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
	padding: 0 10px;
}

.task-genius-view .mini-calendar-container .calendar-day-header {
	text-align: center;
	font-size: 0.8em;
	color: var(--text-muted);
	padding: 5px 0;
	border-bottom: 1px solid var(--background-modifier-border);
	margin-bottom: 5px;
}

.task-genius-view
	.mini-calendar-container
	.calendar-day-header.calendar-weekend {
	color: var(--text-accent);
}

/* Adjust grid layout when weekends are hidden in mini calendar */
.task-genius-view .mini-calendar-container.hide-weekends .calendar-grid {
	grid-template-columns: repeat(5, 1fr); /* 5 columns instead of 7 when weekends hidden */
}

/* Note: Weekend elements are not created when hideWeekends is enabled,
   so no hiding rules are needed. The grid layout adjustments above are sufficient. */

.task-genius-view .mini-calendar-container .calendar-day {
	aspect-ratio: 1;
	border-radius: 4px;
	padding: 2px;
	cursor: pointer;
	position: relative;
	display: flex;
	flex-direction: column;
	transition: background-color 0.2s ease;
}

.task-genius-view .mini-calendar-container .calendar-day:hover {
	background-color: var(--background-modifier-hover);
}

.task-genius-view .mini-calendar-container .calendar-day.selected {
	background-color: var(--background-modifier-border-hover);
}

.task-genius-view .mini-calendar-container .calendar-day.today {
	background-color: var(--interactive-accent-hover);
	color: var(--text-on-accent);
}

.task-genius-view .mini-calendar-container .calendar-day.past-due {
	color: var(--text-error);
}

.task-genius-view .mini-calendar-container .calendar-day.other-month {
	opacity: 0.5;
}

.task-genius-view .mini-calendar-container .calendar-day-number {
	text-align: center;
	font-size: 0.9em;
	font-weight: 500;
	padding: 2px;
}

.task-genius-view .mini-calendar-container .calendar-day-count {
	background-color: var(--background-modifier-border);
	color: var(--text-normal);
	border-radius: 10px;
	font-size: 0.7em;
	padding: 1px 5px;
	margin: 2px auto;
	text-align: center;
	width: fit-content;
}

.task-genius-view .mini-calendar-container .calendar-day-count.has-priority {
	background-color: var(--text-accent);
	color: var(--text-on-accent);
}

@media (max-width: 1400px) {
	.task-genius-container:has(.task-details.visible)
		.mini-calendar-container
		.forecast-left-column {
		display: none;
	}
}
